home *** CD-ROM | disk | FTP | other *** search
- /* support for environment variables */
-
- struct env_var {
- struct env_var *left,*right; /* tree pointers */
- char *value; /* var value */
- char value_alloc; /* value is alloced? */
- char name[1]; /* var name, \0 terminated */
- };
-
- #define NULLENV ((struct env_var *) 0)
- #define NULLCHRP ((char **) 0)
-
- struct env_default {
- char *name; /* the name */
- char *value; /* it's default value */
- };
-
- void readenv(),free_env();
- char **make_env();
- char *getenv(),*getnenv();
- struct env_var *setenv();
-